From aef618dfdcfdd1c53b4472e90dd75df530be08cc Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Tue, 1 Aug 2006 16:42:48 -0400 Subject: [PATCH] [POWERPC] finddevice must return a phandle of -1 Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --- xen/arch/powerpc/of_handler/devtree.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/powerpc/of_handler/devtree.c b/xen/arch/powerpc/of_handler/devtree.c index 6d52b433a4..edd98f976f 100644 --- a/xen/arch/powerpc/of_handler/devtree.c +++ b/xen/arch/powerpc/of_handler/devtree.c @@ -203,12 +203,14 @@ ofh_finddevice(u32 nargs, u32 nrets, s32 argp[], s32 retp[], ulong b) /* good enuff */ if (devspec[0] == '\0') { if (*ap == -1) { + *ph = -1; return OF_FAILURE; } *ph = *ap; } else { *ph = ofd_node_find(mem, devspec); if (*ph <= 0) { + *ph = -1; return OF_FAILURE; } } -- 2.30.2